package com.lw.edu.controller;

import com.lw.commonutil.result.Result;
import com.lw.commonutil.result.ResultCodeEnum;
import com.lw.servicebase.exception.GuliException;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/admin/edu/user")
public class EduLoginController {

    //shiro过滤后请求链接
    @GetMapping("/authError")
    public Result authError(@RequestParam("code") Integer code){
        if (code==1){
            throw new GuliException( ResultCodeEnum.LOGIN_AUTH );
        }else {
            throw new GuliException( ResultCodeEnum.LOGIN_ACL );
        }
    }
}
